WPS Office.apk(点击下载) / abar.java


package defpackage;

import java.io.OutputStream;

/* renamed from: abar  reason: default package */
public class abar implements abal {
    private static final anl CDx = new anl("", "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties");
    and CDw = null;
    abah CDy;

    @Override // defpackage.abal
    public boolean a(aazt aazt, OutputStream outputStream) throws aazk {
        if (!(aazt instanceof abah)) {
            throw new IllegalArgumentException("'part' must be a ExtendedPackagePropertiesPart instance.");
        }
        this.CDy = (abah) aazt;
        this.CDw = new aoz();
        this.CDw.d(CDx.uri, CDx.aRQ, "Properties").n("vt", "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes");
        String hdI = this.CDy.hdI();
        if (hdI != null) {
            ang o = this.CDw.Ig().o("Template", CDx.uri);
            if (o == null) {
                o = this.CDw.Ig().d(CDx.uri, CDx.aRQ, "Template");
            } else {
                o.clearContent();
            }
            o.ct(hdI);
        }
        Integer hdJ = this.CDy.hdJ();
        if (hdJ != null) {
            ang o2 = this.CDw.Ig().o("TotalTime", CDx.uri);
            if (o2 == null) {
                o2 = this.CDw.Ig().d(CDx.uri, CDx.aRQ, "TotalTime");
            } else {
                o2.clearContent();
            }
            o2.ct(Integer.toString(hdJ.intValue()));
        }
        Integer hdK = this.CDy.hdK();
        if (hdK != null) {
            ang o3 = this.CDw.Ig().o("Words", CDx.uri);
            if (o3 == null) {
                o3 = this.CDw.Ig().d(CDx.uri, CDx.aRQ, "Words");
            } else {
                o3.clearContent();
            }
            o3.ct(Integer.toString(hdK.intValue()));
        }
        Integer hdE = this.CDy.hdE();
        if (hdE != null) {
            ang o4 = this.CDw.Ig().o("Pages", CDx.uri);
            if (o4 == null) {
                o4 = this.CDw.Ig().d(CDx.uri, CDx.aRQ, "Pages");
            } else {
                o4.clearContent();
            }
            o4.ct(Integer.toString(hdE.intValue()));
        }
        Integer hdw = this.CDy.hdw();
        if (hdw != null) {
            ang o5 = this.CDw.Ig().o("Characters", CDx.uri);
            if (o5 == null) {
                o5 = this.CDw.Ig().d(CDx.uri, CDx.aRQ, "Characters");
            } else {
                o5.clearContent();
            }
            o5.ct(Integer.toString(hdw.intValue()));
        }
        String hdu = this.CDy.hdu();
        if (hdu != null && hdu.length() > 0) {
            ang o6 = this.CDw.Ig().o("Application", CDx.uri);
            if (o6 == null) {
                o6 = this.CDw.Ig().d(CDx.uri, CDx.aRQ, "Application");
            } else {
                o6.clearContent();
            }
            o6.ct(hdu);
        }
        Integer hdy = this.CDy.hdy();
        if (hdy != null) {
            ang o7 = this.CDw.Ig().o("DocSecurity", CDx.uri);
            if (o7 == null) {
                o7 = this.CDw.Ig().d(CDx.uri, CDx.aRQ, "DocSecurity");
            } else {
                o7.clearContent();
            }
            o7.ct(Integer.toString(hdy.intValue()));
        }
        Integer hdF = this.CDy.hdF();
        if (hdF != null) {
            ang o8 = this.CDw.Ig().o("Paragraphs", CDx.uri);
            if (o8 == null) {
                o8 = this.CDw.Ig().d(CDx.uri, CDx.aRQ, "Paragraphs");
            } else {
                o8.clearContent();
            }
            o8.ct(Integer.toString(hdF.intValue()));
        }
        Boolean hdG = this.CDy.hdG();
        if (hdG != null) {
            ang o9 = this.CDw.Ig().o("ScaleCrop", CDx.uri);
            if (o9 == null) {
                o9 = this.CDw.Ig().d(CDx.uri, CDx.aRQ, "ScaleCrop");
            } else {
                o9.clearContent();
            }
            o9.ct(Boolean.toString(hdG.booleanValue()));
        }
        String hdx = this.CDy.hdx();
        if (hdx != null && hdx.length() > 0) {
            ang o10 = this.CDw.Ig().o("Company", CDx.uri);
            if (o10 == null) {
                o10 = this.CDw.Ig().d(CDx.uri, CDx.aRQ, "Company");
            } else {
                o10.clearContent();
            }
            o10.ct(hdx);
        }
        Boolean hdB = this.CDy.hdB();
        if (hdB != null) {
            ang o11 = this.CDw.Ig().o("LinksUpToDate", CDx.uri);
            if (o11 == null) {
                o11 = this.CDw.Ig().d(CDx.uri, CDx.aRQ, "LinksUpToDate");
            } else {
                o11.clearContent();
            }
            o11.ct(Boolean.toString(hdB.booleanValue()));
        }
        Integer hdL = this.CDy.hdL();
        if (hdL != null) {
            ang o12 = this.CDw.Ig().o("CharactersWithSpaces", CDx.uri);
            if (o12 == null) {
                o12 = this.CDw.Ig().d(CDx.uri, CDx.aRQ, "CharactersWithSpaces");
            } else {
                o12.clearContent();
            }
            o12.ct(Integer.toString(hdL.intValue()));
        }
        Boolean hdH = this.CDy.hdH();
        if (hdH != null) {
            ang o13 = this.CDw.Ig().o("SharedDoc", CDx.uri);
            if (o13 == null) {
                o13 = this.CDw.Ig().d(CDx.uri, CDx.aRQ, "SharedDoc");
            } else {
                o13.clearContent();
            }
            o13.ct(Boolean.toString(hdH.booleanValue()));
        }
        Boolean hdA = this.CDy.hdA();
        if (hdA != null) {
            ang o14 = this.CDw.Ig().o("HyperlinksChanged", CDx.uri);
            if (o14 == null) {
                o14 = this.CDw.Ig().d(CDx.uri, CDx.aRQ, "HyperlinksChanged");
            } else {
                o14.clearContent();
            }
            o14.ct(Boolean.toString(hdA.booleanValue()));
        }
        String hdC = this.CDy.hdC();
        if (hdC != null && hdC.length() > 0) {
            ang o15 = this.CDw.Ig().o("Manager", CDx.uri);
            if (o15 == null) {
                o15 = this.CDw.Ig().d(CDx.uri, CDx.aRQ, "Manager");
            } else {
                o15.clearContent();
            }
            o15.ct(hdC);
        }
        Integer hdD = this.CDy.hdD();
        if (hdD != null) {
            ang o16 = this.CDw.Ig().o("MMClips", CDx.uri);
            if (o16 == null) {
                o16 = this.CDw.Ig().d(CDx.uri, CDx.aRQ, "MMClips");
            } else {
                o16.clearContent();
            }
            o16.ct(Integer.toString(hdD.intValue()));
        }
        String hdz = this.CDy.hdz();
        if (hdz != null && hdz.length() > 0) {
            ang o17 = this.CDw.Ig().o("HyperlinkBase", CDx.uri);
            if (o17 == null) {
                o17 = this.CDw.Ig().d(CDx.uri, CDx.aRQ, "HyperlinkBase");
            } else {
                o17.clearContent();
            }
            o17.ct(hdz);
        }
        String hdv = this.CDy.hdv();
        if (hdv == null || hdv.length() <= 0) {
            return true;
        }
        ang o18 = this.CDw.Ig().o("AppVersion", CDx.uri);
        if (o18 == null) {
            o18 = this.CDw.Ig().d(CDx.uri, CDx.aRQ, "AppVersion");
        } else {
            o18.clearContent();
        }
        o18.ct(hdv);
        return true;
    }

    public final void finish() {
        ang Ig;
        if (this.CDw != null && (Ig = this.CDw.Ig()) != null) {
            Ig.Ir();
        }
    }
}